import type { RouteRecordRaw } from "vue-router";

function Layout() {
  return import("@/layouts/index.vue");
}

const routes: RouteRecordRaw = {
  path: "/dashboard",
  component: Layout,
  redirect: "/dashboard/workbench",
  name: "dashboard",
  meta: {
    title: "仪表盘",
    icon: "iconfont icon-dashboard",
  },
  children: [
    {
      path: "workbench",
      name: "workbench",
      component: () => import("@/views/dashboard/workbench/index.vue"),
      meta: {
        title: "工作台",
      },
    },
    {
      path: "dailyReport",
      name: "dailyReport",
      component: () => import("@/views/dashboard/dailyReport/index.vue"),
      meta: {
        title: "资金划转日报表",
      },
    },
  ],
};

export default routes;
